//package com.wenqiner.requesttool.util;
//
//import com.wenqiner.requesttool.domain.HttpResponseData;
//
//import java.util.HashMap;
//import java.util.Map;
//
///**
// * @author rhf
// * @date 2023-02-27
// **/
//public class TestRequest {
//    public static void main(String[] args) {
////        test1();
//        test2();
//    }
//    public static void test1(){
//        Map<String, String> headerMap = new HashMap<>();
//        headerMap.put("platformNo", "22023030113473550453585");
//        String requestId = "t-h-f" + System.currentTimeMillis();
//        headerMap.put("requestId", requestId);
//        String param = "{\"originalTransactionNo\":\"22023030113473550453585\",\"refundMode\":\"2\",\"notifyUrl\":\"https://domain/transaction/callback\"}";
//        try {
//            HttpResponseData httpResponseData = HttpUtil.doPost("http://192.168.110.140:20007/transaction/mikopo", headerMap, param);
//            System.out.println("返回结果:"+httpResponseData.getData());
//            System.out.println("requestId:"+requestId);
//        } catch (Exception e) {
//            throw new RuntimeException(e);
//        }
//    }
//
//    public static void test2(){
//        Map<String, String> headerMap = new HashMap<>();
//        headerMap.put("platformNo", "430728360980168704");
//        String requestId = "t-h-f" + System.currentTimeMillis();
//        headerMap.put("requestId", requestId);
//        String param = "{\"originalTransactionNo\":\"22023030113545549433585\",\"refundMode\":\"3\",\"notifyUrl\":\"https://domain/transaction/callback\"}";
//        try {
//            HttpResponseData httpResponseData = HttpUtil.doPost("http://192.168.110.140:20007/transaction/mikopo", headerMap, param);
//            System.out.println("返回结果:"+httpResponseData.getData());
//            System.out.println("requestId:"+requestId);
//        } catch (Exception e) {
//            throw new RuntimeException(e);
//        }
//    }
//}
